package com.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * beinmortgage
 * @author 
 */
public class Beinmortgage implements Serializable {
    private Integer bmid;

    private Integer serviceid;

    private BigDecimal generalmortgage;

    private BigDecimal maxmortgage;

    private Integer mortgagee;

    private Integer mortgager;

    private String location;

    private String scope;

    private BigDecimal maxclaim;

    private Date returntime;

    private String identificationnumber;

    private Date registertime;

    private Integer uid;

    private String maxfact;

    private Integer cancelserviceid;

    private String descript;

    private Integer roomid;

    private static final long serialVersionUID = 1L;

    public Integer getBmid() {
        return bmid;
    }

    public void setBmid(Integer bmid) {
        this.bmid = bmid;
    }

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public BigDecimal getGeneralmortgage() {
        return generalmortgage;
    }

    public void setGeneralmortgage(BigDecimal generalmortgage) {
        this.generalmortgage = generalmortgage;
    }

    public BigDecimal getMaxmortgage() {
        return maxmortgage;
    }

    public void setMaxmortgage(BigDecimal maxmortgage) {
        this.maxmortgage = maxmortgage;
    }

    public Integer getMortgagee() {
        return mortgagee;
    }

    public void setMortgagee(Integer mortgagee) {
        this.mortgagee = mortgagee;
    }

    public Integer getMortgager() {
        return mortgager;
    }

    public void setMortgager(Integer mortgager) {
        this.mortgager = mortgager;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public BigDecimal getMaxclaim() {
        return maxclaim;
    }

    public void setMaxclaim(BigDecimal maxclaim) {
        this.maxclaim = maxclaim;
    }

    public Date getReturntime() {
        return returntime;
    }

    public void setReturntime(Date returntime) {
        this.returntime = returntime;
    }

    public String getIdentificationnumber() {
        return identificationnumber;
    }

    public void setIdentificationnumber(String identificationnumber) {
        this.identificationnumber = identificationnumber;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getMaxfact() {
        return maxfact;
    }

    public void setMaxfact(String maxfact) {
        this.maxfact = maxfact;
    }

    public Integer getCancelserviceid() {
        return cancelserviceid;
    }

    public void setCancelserviceid(Integer cancelserviceid) {
        this.cancelserviceid = cancelserviceid;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Beinmortgage other = (Beinmortgage) that;
        return (this.getBmid() == null ? other.getBmid() == null : this.getBmid().equals(other.getBmid()))
            && (this.getServiceid() == null ? other.getServiceid() == null : this.getServiceid().equals(other.getServiceid()))
            && (this.getGeneralmortgage() == null ? other.getGeneralmortgage() == null : this.getGeneralmortgage().equals(other.getGeneralmortgage()))
            && (this.getMaxmortgage() == null ? other.getMaxmortgage() == null : this.getMaxmortgage().equals(other.getMaxmortgage()))
            && (this.getMortgagee() == null ? other.getMortgagee() == null : this.getMortgagee().equals(other.getMortgagee()))
            && (this.getMortgager() == null ? other.getMortgager() == null : this.getMortgager().equals(other.getMortgager()))
            && (this.getLocation() == null ? other.getLocation() == null : this.getLocation().equals(other.getLocation()))
            && (this.getScope() == null ? other.getScope() == null : this.getScope().equals(other.getScope()))
            && (this.getMaxclaim() == null ? other.getMaxclaim() == null : this.getMaxclaim().equals(other.getMaxclaim()))
            && (this.getReturntime() == null ? other.getReturntime() == null : this.getReturntime().equals(other.getReturntime()))
            && (this.getIdentificationnumber() == null ? other.getIdentificationnumber() == null : this.getIdentificationnumber().equals(other.getIdentificationnumber()))
            && (this.getRegistertime() == null ? other.getRegistertime() == null : this.getRegistertime().equals(other.getRegistertime()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getMaxfact() == null ? other.getMaxfact() == null : this.getMaxfact().equals(other.getMaxfact()))
            && (this.getCancelserviceid() == null ? other.getCancelserviceid() == null : this.getCancelserviceid().equals(other.getCancelserviceid()))
            && (this.getDescript() == null ? other.getDescript() == null : this.getDescript().equals(other.getDescript()))
            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBmid() == null) ? 0 : getBmid().hashCode());
        result = prime * result + ((getServiceid() == null) ? 0 : getServiceid().hashCode());
        result = prime * result + ((getGeneralmortgage() == null) ? 0 : getGeneralmortgage().hashCode());
        result = prime * result + ((getMaxmortgage() == null) ? 0 : getMaxmortgage().hashCode());
        result = prime * result + ((getMortgagee() == null) ? 0 : getMortgagee().hashCode());
        result = prime * result + ((getMortgager() == null) ? 0 : getMortgager().hashCode());
        result = prime * result + ((getLocation() == null) ? 0 : getLocation().hashCode());
        result = prime * result + ((getScope() == null) ? 0 : getScope().hashCode());
        result = prime * result + ((getMaxclaim() == null) ? 0 : getMaxclaim().hashCode());
        result = prime * result + ((getReturntime() == null) ? 0 : getReturntime().hashCode());
        result = prime * result + ((getIdentificationnumber() == null) ? 0 : getIdentificationnumber().hashCode());
        result = prime * result + ((getRegistertime() == null) ? 0 : getRegistertime().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getMaxfact() == null) ? 0 : getMaxfact().hashCode());
        result = prime * result + ((getCancelserviceid() == null) ? 0 : getCancelserviceid().hashCode());
        result = prime * result + ((getDescript() == null) ? 0 : getDescript().hashCode());
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bmid=").append(bmid);
        sb.append(", serviceid=").append(serviceid);
        sb.append(", generalmortgage=").append(generalmortgage);
        sb.append(", maxmortgage=").append(maxmortgage);
        sb.append(", mortgagee=").append(mortgagee);
        sb.append(", mortgager=").append(mortgager);
        sb.append(", location=").append(location);
        sb.append(", scope=").append(scope);
        sb.append(", maxclaim=").append(maxclaim);
        sb.append(", returntime=").append(returntime);
        sb.append(", identificationnumber=").append(identificationnumber);
        sb.append(", registertime=").append(registertime);
        sb.append(", uid=").append(uid);
        sb.append(", maxfact=").append(maxfact);
        sb.append(", cancelserviceid=").append(cancelserviceid);
        sb.append(", descript=").append(descript);
        sb.append(", roomid=").append(roomid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}